package com.wr.recruit.service.service;

import com.wr.recruit.service.dao.dbo.DepartmentDbo;
import com.wr.recruit.service.dao.dbo.UserDbo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface DepartmentService {

    DepartmentDbo createDepartment(DepartmentDbo departmentDbo);

    DepartmentDbo updateDepartment(DepartmentDbo departmentDbo);

    void deleteDepartment(String departmentCode);

    Page<DepartmentDbo> getDepartmentList(String companyCode, String departmentName, Integer pageSize, Integer pageNum);

    DepartmentDbo getDepartment(String departmentCode);

    DepartmentDbo getDepartment(String departmentCode, String companyCode);

    Boolean updateUserDepartment(String departmentCode, String userName);

    List<UserDbo> getUserDepartment(String companyCode, String departmentCode);
}
